package cn.wolfcode.crud.service;

import cn.wolfcode.crud.domain.Employee;
import cn.wolfcode.crud.qo.EmployeeQuerObjcet;
import com.github.pagehelper.PageInfo;
import org.apache.poi.ss.usermodel.Workbook;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

public interface IEmployeeService {
    void delete(Long id);

    void insert(Employee employee,Long[] ids);

    Employee get(Long id);

    List<Employee> selectAll();

    void update(Employee employee, Long[] ids);
    PageInfo<Employee> query(EmployeeQuerObjcet eqo);

    Employee loginSelect(String username, String password);

    void updatePwd(String newPassword, Long id);

    void batchDelete(Long[] ids);

    Employee checkName(String name);

    void saveStatus(long id, boolean status);

    Workbook exportXls();

    void importXls(MultipartFile file) throws Exception;

    List<Employee> selectByRole(String ... sns);
}
